package com.kuang.service.impl;

import com.kuang.dao.UserDao;
import com.kuang.service.UserService;

/**
 * @program: springs-study
 * @description:
 * @author: 陈恩涛
 * @create: 2020-06-28 20:58
 **/
public class UserServiceImpl implements UserService {

//    private UserDao userDao = new UserDaoImpl();
//    private UserDao userDao = new UserDaoMysqlImpl();
    private UserDao userDao;

    //利用set进行动态实现值的注入！
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser() {
        userDao.getUser();
    }
}
